'use strict'

var app = angular.module('myBBS',[]);

app.controller('myBBSCtrl',function($http){
    this.posts=[
        {
            "name":"1",
            "author":"11"
        },
        {
            "name":"2",
            "author":"22"
        },
        {
            "name":"3",
            "author":"33"
        }
    ];
    var posts = this.posts;
    this.users=[
        {
            "name":"Tom",
            "id":"23",
            "postnumber":"96"
        },
        {
            "name":"Amy",
            "id":"54",
            "postnumber":"88"
        },
        {
            "name":"Jack",
            "id":"9",
            "postnumber":"60"
        },
        {
            "name":"John",
            "id":"12",
            "postnumber":"42"
        }
    ];
    var users =this.users;
    this.websites=["http://www.bootcdn.cn/","youdab.com.cn","wangchenyu.net.cn"];
    var websites =this.users;
});